package com.landiao.mapper;

import java.util.List;

import com.landiao.entities.OrderDetail;

public interface OrderDetailMapper extends BaseMapper<OrderDetail,String>{
    int deleteByPrimaryKey(String orderDetailId);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    OrderDetail selectByPrimaryKey(String orderDetailId);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);
    
    int batchDelete(List<String> detailIds);
    
    /**
     * 判断是否服务过
     * @param detailIds
     * @return
     */
    List<OrderDetail> selectHasService(List<String> detailIds);
    
    int batchInsert(List<OrderDetail> list);
    
    List<OrderDetail> selectNotOver(String orderInfoId);
}